# Maintainer: Yo'av Moshe <alpine@yoavmoshe.com>
pkgname=pidif
pkgver=0.1
pkgrel=1
pkgdesc="Simple PDF Reader"
url="https://github.com/bjesus/pidif"
arch="all !s390x !riscv64" # rust
license="GPL-3.0-or-later"
makedepends="
	cairo-dev
	cargo
	cargo-auditable
	gtk4.0-dev
	poppler-dev
	"
source="$pkgname-$pkgver.tar.gz::https://github.com/bjesus/pidif/archive/refs/tags/$pkgver.tar.gz"


prepare() {
	default_prepare
	
	cargo fetch --target="$CTARGET" --locked
}

build() {
	cargo auditable build --release --frozen
}

check() {
	cargo test --frozen
}

package() {
	install -Dm755 "target/release/pidif" "$pkgdir/usr/bin/pidif"
}

sha512sums="
ba067c8c98cc5db6c3412dd7793ba901863f9ca6fa2cf828d28597c87614c3ba7f57e74d7ba85267e28c569d30e3ab12424eae96e963092d5bfb6fd720d40ca9  pidif-0.1.tar.gz
"
